from apscheduler.schedulers.blocking import BlockingScheduler
from task import c4 as task_c


# 定时任务管理
def task_management():
    # 添加任务,时间间隔30S
    scheduler = BlockingScheduler()
    # 跑每日的监控数据
    scheduler.add_job(task_c.fresh_cache, 'interval', seconds=600, id='cache_task')
    scheduler.start()

